有些软件的源码包中代码管理脚本写得不完善,导致某些必须的共享库不被写入链接目标中,进而导致最终链接失败。例如Performous本身需要bzip2这个库,却没有在 configure 脚本里写上依赖关系 。解决办法就是在编译之前在LDFLAGS环境变量中手动加入需要链接的目标共享库。
http://stackoverflow.com/questions/6254245/how-to-add-a-path-to-ldflags
亮点 :
The question is not really descriptive enough for anyone to answer well, but....
On a Unix-based system you would likely do something like this:
$ export LDFLAGS="-R/the/path/to/the/gmp/lib -L/the/path/to/the/gmp/lib"
$ ./configure
$ make
$ make install
Windows environments with GNU make tools, will need minor tweaks.
赵秀晶
HxLauncher: Launch Android applications by voice commands